<?php 
define('php_frame',realpath('./'));


define('core',php_frame.'/core');
define('app',php_frame.'/app');
define('module','app');

define ('debug',true);

include "vendor/autoload.php";

if(debug){
	// $whoops = new \Whoops\Run;
	// $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
	// $whoops->register();

	ini_set('display_error',true);
}else{
	ini_set('display_error',false);
}

// a();

include core.'/common/function.php';

include core.'/php_frame.php';

//类不存在加载该方法
spl_autoload_register('\php_frame\php_frame::load');

\php_frame\php_frame::run();